﻿package Message.Client
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ENPCFunType extends Object
    {
        public var __value:int;
        public static const _ENPCFunShop:int = 1;
        public static const _ENPCFunCopy:int = 2;
        public static const _ENPCFunWarehouse:int = 5;
        public static const _ENPCFunArena:int = 6;
        public static const _ENPCFunBattlefield:int = 7;
        public static const _ENPCFunSingleCopy:int = 8;
        public static const _ENPCFunGroupCopy:int = 9;
        public static const _ENPCFunChallengeCopy:int = 10;
        public static const _ENPCFunDefenseCopy:int = 11;
        public static const _ENPCFunEnterGuildCopy:int = 12;
        public static const _ENPCFunGuildWar:int = 13;
        public static const _ENPCFunGuildBoss:int = 14;
        public static const _ENPCFunOpenForging:int = 15;
        public static const _ENPCFunOpenPet:int = 16;
        public static const _ENPCFunPetThrough:int = 17;
        public static const _ENPCFunOpenMount:int = 18;
        public static const _ENPCFunOpenWizard:int = 19;
        public static const _ENPCFunCycleTask:int = 20;
        public static const _ENPCFunHangTask:int = 21;
        public static const _ENPCFunPKTask:int = 22;
        public static const _ENPCFunSieveTask:int = 23;
        public static const _ENPCFunCrossTask:int = 24;
        public static const _ENPCFunOpenMarket:int = 25;
        public static const _ENPCFunMiningTask:int = 26;
        public static const _ENPCFunEscortTask:int = 27;
        public static const _ENPCFunChangeCareer:int = 28;
        public static const _ENPCFuncHeroArenaRestRoom:int = 29;
        public static const _ENPCFuncHeroArena:int = 30;
        public static const _ENPCFuncCityTax:int = 31;
        public static const _ENPCFuncBlackMarket:int = 32;

        public function ENPCFunType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ENPCFunType
        {
            return new ENPCFunType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ENPCFunType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 33)
            {
                throw new MarshalException();
            }
            return ENPCFunType.convert(_loc_2);
        }// end function

    }
}
